<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.tueye.entity.user.User"%>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
    
    <title>用户信息设置</title>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<meta http-equiv="keywords" content="blog,图片,david" />
	<meta http-equiv="description" content="This is my web blog" />
	
<link href="<%=path %>/themes/css/index.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/themes/css/pmanager.css" rel="stylesheet" type="text/css" />
<link href="<%=path %>/themes/css/regis.css" rel="stylesheet" type="text/css" /> 
   <script type="text/javascript" src="<%=path %>/script/jquery.js"></script>
 


</head>

<body>
  
		<table>
		 <tr><td>
	 <div style="display:none;" id="loadtip2"><img src="<%=path%>/themes/images/success.gif"　width="30px" height="20px"/><font color="red">基本信息设置成功</font></div> 
	 </td></tr>
		  <tr>
		   <td>昵称:</td><td>${user.byname}</td><td>密码:</td><td>${user.byname}</td>
		  </tr>
		   <tr>
		   <td>email:</td><td>${user.email}</td><td>msn:</td><td>${pu.msn}</td>
		  </tr>
		   <tr>
		   <%
	   //这个地方报错不用管，因为在引用的header.jsp里面会把相关对象引进来
	   User user = (User)request.getAttribute("user");
	   %>     
	       
	       <% if(user == null){
	        request.getRequestDispatcher("userlogin.jsp").forward(request,response);
	       }else{
                  if(user.getUserPoto()==null||"".equals(user.getUserPoto())){ 
           %> 
                 <td>头像:</td><td><img src="<%=path%>/pages/topics/usermanager/userphoto/userphoto.jpg" width="96" height="96" /></td>
           <% 
                  }else    
                {%> 
               <td>头像:</td><td><img alt="" src="<%=request.getContextPath() %>/pages/topics/usermanager/userphoto/<%=user.getUserPoto() %>" width="96" height="96" /></td>
           <%}}%> 
		   
		  </tr>
		   <tr>	
		   <td>现居地:</td><td>${user.nowHome}</td><td>活动区域:</td><td>${user.activeArea}</td>
		   </tr>
		  <tr>
		   <td>出生地:</td><td>${user.homeplace}</td>
		   <c:if test="${pu.sex==null}"> 
		   <td>性别:</td><td>不知道</td>
		   </c:if>
		   <c:if test="${pu.sex==0}"> 
		   <td>性别:</td><td>不知道</td>
		   </c:if>
		   <c:if test="${pu.sex==1}"> 
		   <td>性别:</td><td>男</td>
		   </c:if>
		   <c:if test="${pu.sex==2}"> 
		   <td>性别:</td><td>女</td>
		   </c:if>
		  </tr>
		   <tr>
		  <c:if test="${pu.tiXing==null}"> 
		   <td>体型:</td><td>保密</td>
		   </c:if>
		   <c:if test="${pu.tiXing==0}"> 
		   <td>体型:</td><td>保密</td>
		   </c:if>
		   <c:if test="${pu.tiXing==1}"> 
		   <td>体型:</td><td>保密</td>
		   </c:if>
		   <c:if test="${pu.tiXing==2}"> 
		   <td>体型:</td><td>清瘦</td>
		   </c:if>
		   <c:if test="${pu.tiXing==3}"> 
		   <td>体型:</td><td>均称</td>
		   </c:if>
		   <c:if test="${pu.tiXing==4}"> 
		   <td>体型:</td><td>健壮</td>
		   </c:if>
		   <c:if test="${pu.tiXing==5}"> 
		   <td>体型:</td><td>球型</td>
		   </c:if>
		   <c:if test="${pu.loveType==null}"> 
		   <td>恋爱状况:</td><td>不知道</td>
		   </c:if>
		   <c:if test="${pu.loveType==0}"> 
		   <td>恋爱状况:</td><td>不知道</td>
		   </c:if>
		   <c:if test="${pu.loveType==1}"> 
		   <td>恋爱状况:</td><td>单身</td>
		   </c:if>
		   <c:if test="${pu.loveType==2}"> 
		   <td>恋爱状况:</td><td>热恋</td>
		   </c:if>
		   <c:if test="${pu.loveType==3}"> 
		   <td>恋爱状况:</td><td>已婚</td>
		   </c:if>
		  </tr>
		   <tr>
		   <td>星座:</td><td>${pu.star_type}</td><td>生日:</td><td>${pu.birthday}</td>
		  </tr>
		   <tr>
		   <td>qq:</td><td>${pu.qq}</td><td>行业 / 职业:</td><td>${pu.workType}</td>
		  </tr>
		   <tr>
		   <td>毕业学校：</td><td>${pu.over_school}</td><td>个人主页:</td><td>${pu.userWebSite}</td>
		  </tr>
		   <tr>
		   <td>爱好:</td><td>${pu.loveThings}</td>
		  </tr>
		  <tr>
		 <td>电影 / 导演 / 演员：</td><td>${pu.movierAuthor}</td>
		  </tr>
		  <tr>
		   <td>音乐 / 歌曲 / 歌手：</td><td>${pu.music}</td>
		  </tr>
		  <tr>
		   <td>自我介绍:</td><td>${user.intoduce}
        </td>
		  </tr>
		  
		</table>

</body>
</html>

